import service from '@/utils/request'
// 获取-权限点列表 /sys/permission
export function getPermissionListRequest(data) {
  return service({
    method: 'GET',
    url: '/sys/permission'

  })
}
// 修改/sys/permission/{id}
export function updatePermissionRequest(data) {
  return service({
    method: 'PUT',
    url: `/sys/permission/${data.id}`,
    data

  })
}
// 删除/sys/permission/{id}
export function deletePermissionRequest(id) {
  return service({
    method: 'DELETE',
    url: `/sys/permission/${id}`

  })
}
// 新增/sys/permission
export function addPermissionRequest(data) {
  return service({
    method: 'POST',
    url: '/sys/permission',
    data

  })
}
// 获取详情 /sys/permission/{id}
export function getPermissionRequest(id) {
  return service({
    method: 'GET',
    url: `/sys/permission/${id}`

  })
}
